package com.mujin.keji.collectionsystem.module.protectionrules.repository;

import android.arch.lifecycle.LiveData;

import com.mujin.keji.collectionsystem.base.BaseDto;
import com.mujin.keji.collectionsystem.base.CommonRepository;
import com.mujin.keji.collectionsystem.http.Api;
import com.mujin.keji.collectionsystem.module.protectionrules.dto.OutRuleDto;
import com.mujin.keji.collectionsystem.module.protectionrules.vo.OutRuleVo;
import com.mujin.keji.collectionsystem.module.sign.dto.SignDetailDto;

/**
 * 外访守则Repository
 *
 * @author weishixiong
 * @Time 2018-05-17
 */
public class OutRuleRepository extends CommonRepository<OutRuleDto> implements IOutRuleRepository {
    /**
     * 查询外访守则
     *
     * @param vo
     */
    @Override
    public LiveData<BaseDto<OutRuleDto>> queryOutRule(OutRuleVo vo) {
        return request(Api.queryOutRule(vo)).send().get();
    }
}
